<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0">
	<script src="../lib/js/ionic.bundle.min.js"></script>
	<title>fanhui</title>
	<style>
		body{
			width: 100%;
			height: 100%;
			max-width: 640px;
			min-width: 320px;
			margin: 0 auto;
		}
		div>.button{
			width: 40px;
			height: 40px;
			background-color: rgb(62,62,62);
			background-image: url(../images/nav_back.png);
			background-size: 16px 20px;
			background-position: 13px 13px; 
			background-repeat: no-repeat;
			align-content: center; 
			border: none;
		}
	</style>
</head>
<body ng-app="app" ng-controller="goBack">
	<div>
		<button class="button" ng-click="goBack()"></button>
	</div>
	<script>
		var app=angular.module("app",[]);
		app.controller('goBack',function($scope){
			//定义返回事件
			$scope.goBack=function(){
				window.history.back();
			}
		});
	</script>
</body>
</html>